package serviceSms

import (
	srvSms "mxshop/app/mxshop_api/api/internal/service/sms"
	"mxshop/pkg/options"
)

type serviceFactory struct {
	smsOpts *options.SmsOptions
}

func (sf *serviceFactory) Sms() srvSms.SmsSrv {
	return newSms(sf.smsOpts)
}

func NewService(smsOpts *options.SmsOptions) srvSms.SmsFactory {
	return &serviceFactory{smsOpts: smsOpts}
}
